//The Vue build version to load with the `import` command
//(runtime-only or standalone) has been set in webpack.base.conf with an alias.

import Vue from 'vue'
import Vuex from 'vuex'
import store from './store/index'
import App from './App'
import router from './router'



import BottomBar from '@/components/global/BottomBar.vue'
import TopBar from '@/components/global/TopBar.vue'
import Banner from '@/components/global/Banner.vue'
import RestaurantList from '@/components/global/RestaurantList.vue'
import SlideList from '@/components/SlideList.vue'

import '@assets/css/iconfont/iconfont.css'
import '@assets/css/base.css'
import '@assets/js/rem.js'

import axios from 'axios'
import {post,get,put,patch} from './http'

Vue.config.productionTip = false
Vue.use(Vuex)

Vue.component("bottom-bar",BottomBar);
Vue.component("top-bar",TopBar);
Vue.component("banner",Banner);
Vue.component("restaurant-list",RestaurantList);
// Vue.component("slide-list",SlideList);
/* eslint-disable no-new */

// Vue.prototype.$axios = axios;
Vue.prototype.$post = post;
Vue.prototype.$get = get;
// Vue.prototype.$patch = patch;
// Vue.prototype.$put = put;

new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})

